<template>
  <store-list
    :getStoreList="houseStoreList"
    :storeEdit="houseStoreEdit"
    :storeDel="houseStoreDel"
    :storeAdd="houseStoreAdd"
    storeType="house"
    @go="goOrder"
  >

  </store-list>
</template>

<script>
import storeList from '@/views/store/StoreList'
import { houseStoreList } from '@/api/house'
import { houseStoreEdit, houseStoreDel, houseStoreAdd } from '@/api/store'
export default {
  components: {
    storeList
  },
  data () {
    return {
      houseStoreList,
      houseStoreEdit,
      houseStoreDel,
      houseStoreAdd
    }
  },
  methods: {
    goOrder (item) {
      this.$router.push({
        name: 'houseOrder',
        params: { store_id: item.id }
      })
    }
  }
}
</script>
